<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>余额产品统计</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="1346848676">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "1346848676";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("tbbalancestatistics.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建余额产品统计"
  			,"inport":"导入余额产品统计"
  			,"update":"修改余额产品统计"
  			,"detail":"余额产品统计详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#tbbalancestatisticsForm").form({
		"":function(){}
		,"tbBalanceStatistics.tbbsId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"tbBalanceStatistics.tbbsBrand":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^([0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的编号";				
		}
		,"tbBalanceStatistics.tbbsOldMonthMargin":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"tbBalanceStatistics.tbbsNowMonthBuy":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"tbBalanceStatistics.tbbsNowMonthSend":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"tbBalanceStatistics.tbbsNowMonthSurplus":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"tbBalanceStatistics.tbbsUpdateTime":function(el){
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="TbBalanceStatistics" id="tbbalancestatisticsForm" name="tbbalancestatisticsForm" target="jsoniframe" action="tbbalancestatistics.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写余额产品统计相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("tbbsId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbbsId"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbbsId"))))}}
	{{lz.set("tbbsId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbbsId}}
	<dl lz:if="{{tbbsId_editable||tbbsId_readonly}}" class="tbbsId hidden " major  ref="tbbsId">
		<dt>编　　号:</dt>
		<dd lz:if="{{tbbsId_editable}}" input="hidden">
			<lz:block lz:if="{{tbBalanceStatistics$tbbsId}}">
				{{tbBalanceStatistics$tbbsId}}
			</lz:block>
			<lz:block lz:if="{{!tbBalanceStatistics$tbbsId}}">
			<input type="hidden" value="{{lz.htm(tbBalanceStatistics.tbbsId)}}" name="tbBalanceStatistics.tbbsId" id="tbbsId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbbsId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbbsId">{{tbBalanceStatistics.tbbsId}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbBalanceStatistics.tbbsId$||tbBalanceStatistics.tbbsId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbbsId}}
	{{lz.set("tbbsBrand_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbbsBrand"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbbsBrand"))))}}
	{{lz.set("tbbsBrand_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbbsBrand}}
	<dl lz:if="{{tbbsBrand_editable||tbbsBrand_readonly}}" class="ribs tbbsBrand  " major  ref="tbbsBrand">
		<dt>品　　牌:</dt>
		<dd lz:if="{{tbbsBrand_editable}}" input="number">
			<lz:block lz:if="{{tbBalanceStatistics$tbbsBrand}}">
				{{tbBalanceStatistics$tbbsBrand}}
			</lz:block>
			<lz:block lz:if="{{!tbBalanceStatistics$tbbsBrand}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbBalanceStatistics.tbbsBrand" id="tbbsBrand"  value="{{lz.htm(tbBalanceStatistics.tbbsBrand)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额产品统计的品牌</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbbsBrand_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbbsBrand">{{tbBalanceStatistics.tbbsBrand}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=tbBalanceStatistics.tbbsBrand}')">
			 {{lz.html(tbBalanceStatistics.tbbsBrand$||tbBalanceStatistics.tbbsBrand)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbbsBrand}}
	{{lz.set("tbbsOldMonthMargin_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbbsOldMonthMargin"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbbsOldMonthMargin"))))}}
	{{lz.set("tbbsOldMonthMargin_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbbsOldMonthMargin}}
	<dl lz:if="{{tbbsOldMonthMargin_editable||tbbsOldMonthMargin_readonly}}" class="ribs tbbsOldMonthMargin  " major  ref="tbbsOldMonthMargin">
		<dt>上月余量:</dt>
		<dd lz:if="{{tbbsOldMonthMargin_editable}}" input="number">
			<lz:block lz:if="{{tbBalanceStatistics$tbbsOldMonthMargin}}">
				{{tbBalanceStatistics$tbbsOldMonthMargin}}
			</lz:block>
			<lz:block lz:if="{{!tbBalanceStatistics$tbbsOldMonthMargin}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbBalanceStatistics.tbbsOldMonthMargin" id="tbbsOldMonthMargin"  value="{{lz.htm(tbBalanceStatistics.tbbsOldMonthMargin)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额产品统计的上月余量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbbsOldMonthMargin_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbbsOldMonthMargin">{{tbBalanceStatistics.tbbsOldMonthMargin}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbBalanceStatistics.tbbsOldMonthMargin$||tbBalanceStatistics.tbbsOldMonthMargin)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbbsOldMonthMargin}}
	{{lz.set("tbbsNowMonthBuy_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbbsNowMonthBuy"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbbsNowMonthBuy"))))}}
	{{lz.set("tbbsNowMonthBuy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbbsNowMonthBuy}}
	<dl lz:if="{{tbbsNowMonthBuy_editable||tbbsNowMonthBuy_readonly}}" class="ribs tbbsNowMonthBuy  " major  ref="tbbsNowMonthBuy">
		<dt>本月购量:</dt>
		<dd lz:if="{{tbbsNowMonthBuy_editable}}" input="number">
			<lz:block lz:if="{{tbBalanceStatistics$tbbsNowMonthBuy}}">
				{{tbBalanceStatistics$tbbsNowMonthBuy}}
			</lz:block>
			<lz:block lz:if="{{!tbBalanceStatistics$tbbsNowMonthBuy}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbBalanceStatistics.tbbsNowMonthBuy" id="tbbsNowMonthBuy"  value="{{lz.htm(tbBalanceStatistics.tbbsNowMonthBuy)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额产品统计的本月购量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbbsNowMonthBuy_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbbsNowMonthBuy">{{tbBalanceStatistics.tbbsNowMonthBuy}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbBalanceStatistics.tbbsNowMonthBuy$||tbBalanceStatistics.tbbsNowMonthBuy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbbsNowMonthBuy}}
	{{lz.set("tbbsNowMonthSend_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbbsNowMonthSend"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbbsNowMonthSend"))))}}
	{{lz.set("tbbsNowMonthSend_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbbsNowMonthSend}}
	<dl lz:if="{{tbbsNowMonthSend_editable||tbbsNowMonthSend_readonly}}" class="ribs tbbsNowMonthSend  " major  ref="tbbsNowMonthSend">
		<dt>本月兑换:</dt>
		<dd lz:if="{{tbbsNowMonthSend_editable}}" input="number">
			<lz:block lz:if="{{tbBalanceStatistics$tbbsNowMonthSend}}">
				{{tbBalanceStatistics$tbbsNowMonthSend}}
			</lz:block>
			<lz:block lz:if="{{!tbBalanceStatistics$tbbsNowMonthSend}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbBalanceStatistics.tbbsNowMonthSend" id="tbbsNowMonthSend"  value="{{lz.htm(tbBalanceStatistics.tbbsNowMonthSend)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额产品统计的本月兑换</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbbsNowMonthSend_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbbsNowMonthSend">{{tbBalanceStatistics.tbbsNowMonthSend}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbBalanceStatistics.tbbsNowMonthSend$||tbBalanceStatistics.tbbsNowMonthSend)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbbsNowMonthSend}}
	{{lz.set("tbbsNowMonthSurplus_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbbsNowMonthSurplus"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tbbsNowMonthSurplus"))))}}
	{{lz.set("tbbsNowMonthSurplus_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tbbsNowMonthSurplus}}
	<dl lz:if="{{tbbsNowMonthSurplus_editable||tbbsNowMonthSurplus_readonly}}" class="ribs tbbsNowMonthSurplus  " major  ref="tbbsNowMonthSurplus">
		<dt>本月剩余:</dt>
		<dd lz:if="{{tbbsNowMonthSurplus_editable}}" input="number">
			<lz:block lz:if="{{tbBalanceStatistics$tbbsNowMonthSurplus}}">
				{{tbBalanceStatistics$tbbsNowMonthSurplus}}
			</lz:block>
			<lz:block lz:if="{{!tbBalanceStatistics$tbbsNowMonthSurplus}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbBalanceStatistics.tbbsNowMonthSurplus" id="tbbsNowMonthSurplus"  value="{{lz.htm(tbBalanceStatistics.tbbsNowMonthSurplus)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入余额产品统计的本月剩余</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbbsNowMonthSurplus_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbbsNowMonthSurplus">{{tbBalanceStatistics.tbbsNowMonthSurplus}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbBalanceStatistics.tbbsNowMonthSurplus$||tbBalanceStatistics.tbbsNowMonthSurplus)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbbsNowMonthSurplus}}
	{{lz.set("tbbsUpdateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tbbsUpdateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"tbbsUpdateTime"))))}}
	{{lz.set("tbbsUpdateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$tbbsUpdateTime}}
	<dl lz:if="{{tbbsUpdateTime_editable||tbbsUpdateTime_readonly}}" class="tbbsUpdateTime  " major  ref="tbbsUpdateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{tbbsUpdateTime_editable}}" input="datetime">
			<lz:block lz:if="{{tbBalanceStatistics$tbbsUpdateTime}}">
				{{tbBalanceStatistics$tbbsUpdateTime}}
			</lz:block>
			<lz:block lz:if="{{!tbBalanceStatistics$tbbsUpdateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="tbBalanceStatistics.tbbsUpdateTime" id="tbbsUpdateTime"  value="{{tbBalanceStatistics.tbbsUpdateTime$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择余额产品统计的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tbbsUpdateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tbbsUpdateTime">{{tbBalanceStatistics.tbbsUpdateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbBalanceStatistics.tbbsUpdateTime$||tbBalanceStatistics.tbbsUpdateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tbbsUpdateTime}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{tbBalanceStatistics.tbbsId}}" name="tbBalanceStatistics.tbbsId" id="tbbsId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/products/tbbalancestatistics.edit.html",document.title,"/admin/");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/products/tbbalancestatistics.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


</script>
</html>